<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<script type="text/javascript">
function refresh(){
$.messager.alert('退出账户','退出成功','info');	
}
</script>
<table style="border:0px;width:100%;height:100%;">
     				<tr>
     					<td width="60%" align="center">
     						<img src="${pageContext.request.contextPath }/imgs/book.png"/>欢迎您来到Alone在线购书商城
 					</td>
 					
 					<td align="right" style="padding-right:10px;font-size:10pt;font-family:bold;">
 						<c:choose>
 							<c:when test="${empty sessionScope.user}">
 								<a target="_content" class="easyui-linkbutton" data-options="iconCls:'icon-add'" href="${pageContext.request.contextPath }/jsp/front/user/reg.jsp">注册</a>
 								<a target="_content" class="easyui-linkbutton" data-options="iconCls:'icon-search'" href="${pageContext.request.contextPath }/jsp/front/user/login.jsp">登录</a>
 								<a target="_content" class="easyui-linkbutton" data-options="iconCls:'icon-undo'" href="${pageContext.request.contextPath }/jsp/admin/login.jsp">管理员</a>
 							</c:when>
 							<c:otherwise>
 								欢迎您：
 								<a target="_content" href="${pageContext.request.contextPath}/user?action=info">${user.name}</a>
 								|
 								<a target="_content" href="${pageContext.request.contextPath }/order?action=queryOrders">订单管理</a>
 								|
 								<a target="_content" href="<c:url value='/jsp/front/buy/car.jsp'/>">查看购物车</a>
 								|
 								<a  target="_top" href="${pageContext.request.contextPath}/user?action=exit" onclick="refresh();">退出账户</a>
 							</c:otherwise>
 						</c:choose>
 					</td>
 				</tr>
 			</table>
 			
 			</html>